package com.fary.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;


@FeignClient(value = "eureka-producer", fallback = UserFeignFallback.class, configuration = FeignConfiguration.class)
//@FeignClient(value = "eureka-producer", fallbackFactory = UserFallbackFactory.class, configuration = FeignConfiguration.class)
public interface UserFeign {

    @GetMapping("/user/hello")
    String hello();

}